#coding:utf-8
#code by foRK
#QQ:261496481

import sys,md5

def getMD5(strFile):
    try:
        fh = open(strFile, "rb")
        m = md5.md5()
        strRead = ""

        while True:
            strRead = fh.read(8096)
            if not strRead:
                break
            m.update(strRead)
        bet = True
        strMd5 = m.hexdigest()
    except:
        bet = False
    finally:
        if fh:
            fh.close()
    return [bet, strMd5]

if __name__ == "__main__":
    strPath = raw_input("Input a File path:")
    print(getMD5(strPath))